package com.ruoyi.cost.service;

import java.util.List;
import java.util.Map;

import com.baomidou.mybatisplus.extension.service.IService;
import com.ruoyi.cost.domain.AccAmount;
import com.ruoyi.cost.domain.AccSubject;
import com.ruoyi.cost.domain.Balance;

/**
 * 科目余额及发生额Service接口
 * 
 * @author 王志旸
 * @date 2024-07-09
 */
public interface IAccAmountService  extends IService<AccAmount>

{
    /**
     * 查询科目余额及发生额
     * 
     * @param id 科目余额及发生额主键
     * @return 科目余额及发生额
     */
    public AccAmount selectAccAmountById(String id);

    /**
     * 查询科目余额及发生额列表
     * 
     * @param accAmount 科目余额及发生额
     * @return 科目余额及发生额集合
     */
    public List<AccAmount> selectAccAmountList(String accMode,String accSubName);
    public List<AccAmount> selectAccAmountList1(AccAmount accAmount);

    /**
     * 新增科目余额及发生额
     * 
     * @param accAmount 科目余额及发生额
     * @return 结果
     */
    public int insertAccAmount(AccAmount accAmount);

    /**
     * 修改科目余额及发生额
     * 
     * @param accAmount 科目余额及发生额
     * @return 结果
     */
    public int updateAccAmount(AccAmount accAmount);

    /**
     * 批量删除科目余额及发生额
     * 
     * @param ids 需要删除的科目余额及发生额主键集合
     * @return 结果
     */
    public int deleteAccAmountByIds(String[] ids);

    /**
     * 删除科目余额及发生额信息
     * 
     * @param id 科目余额及发生额主键
     * @return 结果
     */
    public int deleteAccAmountById(String id);

    List<Balance> listBalance(String accMode);
    List<AccAmount> listSupBalance(String accMode,String accSubName);
    List<AccAmount> listSupBalance2(String accMode,String accSubName);

    AccAmount getBeginYearAmount(String vouSubType, String accMode);

    AccAmount getEndYearAmount(String vouSubType, String accMode);

    List<AccAmount> getBeginCurr(String accMode, String accSubName);
    AccAmount getBeginCurr1(String accMode, String accSubName);
    List<AccAmount> getBeginCurr2(String accMode, String accSubName,String spare,List<String> spareList);
    Map getSubAssistedAcc(String accSubNum, String accBusiness,String accMode);

    String getSupSpares(String accSubNum, String accBusiness, String id,String accMode,String spare);
    String getVouSupSpares(String accSubNum, String accBusiness, String id,String accMode,String spare);
}
